\(\int \frac {a+b \arctan (c x)}{x^3 (d+e x^2)^3} \, dx\) [1169]

   Optimal result
   Rubi [A] (verified)
   Mathematica [A] (verified)
   Maple [C] (warning: unable to verify)
   Fricas [F]
   Sympy [F(-1)]
   Maxima [F]
   Giac [F]
   Mupad [F(-1)]

Optimal result

Integrand size = 21, antiderivative size = 629 \[ \int \frac {a+b \arctan (c x)}{x^3 \left (d+e x^2\right )^3} \, dx=-\frac {b c}{2 d^3 x}-\frac {b c e^2 x}{8 d^3 \left (c^2 d-e\right ) \left (d+e x^2\right )}-\frac {b c^2 \arctan (c x)}{2 d^3}+\frac {b c^4 e \arctan (c x)}{4 d^2 \left (c^2 d-e\right )^2}+\frac {b c^2 e \arctan (c x)}{d^3 \left (c^2 d-e\right )}-\frac {a+b \arctan (c x)}{2 d^3 x^2}-\frac {e (a+b \arctan (c x))}{4 d^2 \left (d+e x^2\right )^2}-\frac {e (a+b \arctan (c x))}{d^3 \left (d+e x^2\right )}-\frac {b c e^{3/2} \arctan \left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{d^{7/2} \left (c^2 d-e\right )}-\frac {b c \left (3 c^2 d-e\right ) e^{3/2} \arctan \left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{8 d^{7/2} \left (c^2 d-e\right )^2}-\frac {3 a e \log (x)}{d^4}-\frac {3 e (a+b \arctan (c x)) \log \left (\frac {2}{1-i c x}\right )}{d^4}+\frac {3 e (a+b \arctan (c x)) \log \left (\frac {2 c \left (\sqrt {-d}-\sqrt {e} x\right )}{\left (c \sqrt {-d}-i \sqrt {e}\right ) (1-i c x)}\right )}{2 d^4}+\frac {3 e (a+b \arctan (c x)) \log \left (\frac {2 c \left (\sqrt {-d}+\sqrt {e} x\right )}{\left (c \sqrt {-d}+i \sqrt {e}\right ) (1-i c x)}\right )}{2 d^4}-\frac {3 i b e \operatorname {PolyLog}(2,-i c x)}{2 d^4}+\frac {3 i b e \operatorname {PolyLog}(2,i c x)}{2 d^4}+\frac {3 i b e \operatorname {PolyLog}\left (2,1-\frac {2}{1-i c x}\right )}{2 d^4}-\frac {3 i b e \operatorname {PolyLog}\left (2,1-\frac {2 c \left (\sqrt {-d}-\sqrt {e} x\right )}{\left (c \sqrt {-d}-i \sqrt {e}\right ) (1-i c x)}\right )}{4 d^4}-\frac {3 i b e \operatorname {PolyLog}\left (2,1-\frac {2 c \left (\sqrt {-d}+\sqrt {e} x\right )}{\left (c \sqrt {-d}+i \sqrt {e}\right ) (1-i c x)}\right )}{4 d^4} \]

[Out]

-1/2*b*c/d^3/x-1/8*b*c*e^2*x/d^3/(c^2*d-e)/(e*x^2+d)-1/2*b*c^2*arctan(c*x)/d^3+1/4*b*c^4*e*arctan(c*x)/d^2/(c^
2*d-e)^2+b*c^2*e*arctan(c*x)/d^3/(c^2*d-e)+1/2*(-a-b*arctan(c*x))/d^3/x^2-1/4*e*(a+b*arctan(c*x))/d^2/(e*x^2+d
)^2-e*(a+b*arctan(c*x))/d^3/(e*x^2+d)-b*c*e^(3/2)*arctan(x*e^(1/2)/d^(1/2))/d^(7/2)/(c^2*d-e)-1/8*b*c*(3*c^2*d
-e)*e^(3/2)*arctan(x*e^(1/2)/d^(1/2))/d^(7/2)/(c^2*d-e)^2-3*a*e*ln(x)/d^4-3*e*(a+b*arctan(c*x))*ln(2/(1-I*c*x)
)/d^4+3/2*e*(a+b*arctan(c*x))*ln(2*c*((-d)^(1/2)-x*e^(1/2))/(1-I*c*x)/(c*(-d)^(1/2)-I*e^(1/2)))/d^4+3/2*e*(a+b
*arctan(c*x))*ln(2*c*((-d)^(1/2)+x*e^(1/2))/(1-I*c*x)/(c*(-d)^(1/2)+I*e^(1/2)))/d^4-3/2*I*b*e*polylog(2,-I*c*x
)/d^4-3/4*I*b*e*polylog(2,1-2*c*((-d)^(1/2)+x*e^(1/2))/(1-I*c*x)/(c*(-d)^(1/2)+I*e^(1/2)))/d^4+3/2*I*b*e*polyl
og(2,1-2/(1-I*c*x))/d^4-3/4*I*b*e*polylog(2,1-2*c*((-d)^(1/2)-x*e^(1/2))/(1-I*c*x)/(c*(-d)^(1/2)-I*e^(1/2)))/d
^4+3/2*I*b*e*polylog(2,I*c*x)/d^4

Rubi [A] (verified)

Time = 0.47 (sec) , antiderivative size = 629, normalized size of antiderivative = 1.00, number of steps used = 27, number of rules used = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.714, Rules used = {5100, 4946, 331, 209, 4940, 2438, 5094, 425, 536, 211, 400, 4966, 2449, 2352, 2497} \[ \int \frac {a+b \arctan (c x)}{x^3 \left (d+e x^2\right )^3} \, dx=-\frac {3 e \log \left (\frac {2}{1-i c x}\right ) (a+b \arctan (c x))}{d^4}+\frac {3 e (a+b \arctan (c x)) \log \left (\frac {2 c \left (\sqrt {-d}-\sqrt {e} x\right )}{(1-i c x) \left (c \sqrt {-d}-i \sqrt {e}\right )}\right )}{2 d^4}+\frac {3 e (a+b \arctan (c x)) \log \left (\frac {2 c \left (\sqrt {-d}+\sqrt {e} x\right )}{(1-i c x) \left (c \sqrt {-d}+i \sqrt {e}\right )}\right )}{2 d^4}-\frac {e (a+b \arctan (c x))}{d^3 \left (d+e x^2\right )}-\frac {a+b \arctan (c x)}{2 d^3 x^2}-\frac {e (a+b \arctan (c x))}{4 d^2 \left (d+e x^2\right )^2}-\frac {3 a e \log (x)}{d^4}-\frac {b c e^{3/2} \left (3 c^2 d-e\right ) \arctan \left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{8 d^{7/2} \left (c^2 d-e\right )^2}-\frac {b c e^{3/2} \arctan \left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{d^{7/2} \left (c^2 d-e\right )}+\frac {b c^2 e \arctan (c x)}{d^3 \left (c^2 d-e\right )}-\frac {b c^2 \arctan (c x)}{2 d^3}+\frac {b c^4 e \arctan (c x)}{4 d^2 \left (c^2 d-e\right )^2}-\frac {b c e^2 x}{8 d^3 \left (c^2 d-e\right ) \left (d+e x^2\right )}-\frac {3 i b e \operatorname {PolyLog}(2,-i c x)}{2 d^4}+\frac {3 i b e \operatorname {PolyLog}(2,i c x)}{2 d^4}+\frac {3 i b e \operatorname {PolyLog}\left (2,1-\frac {2}{1-i c x}\right )}{2 d^4}-\frac {3 i b e \operatorname {PolyLog}\left (2,1-\frac {2 c \left (\sqrt {-d}-\sqrt {e} x\right )}{\left (c \sqrt {-d}-i \sqrt {e}\right ) (1-i c x)}\right )}{4 d^4}-\frac {3 i b e \operatorname {PolyLog}\left (2,1-\frac {2 c \left (\sqrt {e} x+\sqrt {-d}\right )}{\left (\sqrt {-d} c+i \sqrt {e}\right ) (1-i c x)}\right )}{4 d^4}-\frac {b c}{2 d^3 x} \]

[In]

Int[(a + b*ArcTan[c*x])/(x^3*(d + e*x^2)^3),x]

[Out]

-1/2*(b*c)/(d^3*x) - (b*c*e^2*x)/(8*d^3*(c^2*d - e)*(d + e*x^2)) - (b*c^2*ArcTan[c*x])/(2*d^3) + (b*c^4*e*ArcT
an[c*x])/(4*d^2*(c^2*d - e)^2) + (b*c^2*e*ArcTan[c*x])/(d^3*(c^2*d - e)) - (a + b*ArcTan[c*x])/(2*d^3*x^2) - (
e*(a + b*ArcTan[c*x]))/(4*d^2*(d + e*x^2)^2) - (e*(a + b*ArcTan[c*x]))/(d^3*(d + e*x^2)) - (b*c*e^(3/2)*ArcTan
[(Sqrt[e]*x)/Sqrt[d]])/(d^(7/2)*(c^2*d - e)) - (b*c*(3*c^2*d - e)*e^(3/2)*ArcTan[(Sqrt[e]*x)/Sqrt[d]])/(8*d^(7
/2)*(c^2*d - e)^2) - (3*a*e*Log[x])/d^4 - (3*e*(a + b*ArcTan[c*x])*Log[2/(1 - I*c*x)])/d^4 + (3*e*(a + b*ArcTa
n[c*x])*Log[(2*c*(Sqrt[-d] - Sqrt[e]*x))/((c*Sqrt[-d] - I*Sqrt[e])*(1 - I*c*x))])/(2*d^4) + (3*e*(a + b*ArcTan
[c*x])*Log[(2*c*(Sqrt[-d] + Sqrt[e]*x))/((c*Sqrt[-d] + I*Sqrt[e])*(1 - I*c*x))])/(2*d^4) - (((3*I)/2)*b*e*Poly
Log[2, (-I)*c*x])/d^4 + (((3*I)/2)*b*e*PolyLog[2, I*c*x])/d^4 + (((3*I)/2)*b*e*PolyLog[2, 1 - 2/(1 - I*c*x)])/
d^4 - (((3*I)/4)*b*e*PolyLog[2, 1 - (2*c*(Sqrt[-d] - Sqrt[e]*x))/((c*Sqrt[-d] - I*Sqrt[e])*(1 - I*c*x))])/d^4
- (((3*I)/4)*b*e*PolyLog[2, 1 - (2*c*(Sqrt[-d] + Sqrt[e]*x))/((c*Sqrt[-d] + I*Sqrt[e])*(1 - I*c*x))])/d^4

Rule 209

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[b, 2]))*ArcTan[Rt[b, 2]*(x/Rt[a, 2])], x] /;
 FreeQ[{a, b}, x] && PosQ[a/b] && (GtQ[a, 0] || GtQ[b, 0])

Rule 211

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[a/b, 2]/a)*ArcTan[x/Rt[a/b, 2]], x] /; FreeQ[{a, b}, x]
&& PosQ[a/b]

Rule 331

Int[((c_.)*(x_))^(m_)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[(c*x)^(m + 1)*((a + b*x^n)^(p + 1)/(a*c
*(m + 1))), x] - Dist[b*((m + n*(p + 1) + 1)/(a*c^n*(m + 1))), Int[(c*x)^(m + n)*(a + b*x^n)^p, x], x] /; Free
Q[{a, b, c, p}, x] && IGtQ[n, 0] && LtQ[m, -1] && IntBinomialQ[a, b, c, n, m, p, x]

Rule 400

Int[1/(((a_) + (b_.)*(x_)^(n_))*((c_) + (d_.)*(x_)^(n_))), x_Symbol] :> Dist[b/(b*c - a*d), Int[1/(a + b*x^n),
 x], x] - Dist[d/(b*c - a*d), Int[1/(c + d*x^n), x], x] /; FreeQ[{a, b, c, d, n}, x] && NeQ[b*c - a*d, 0]

Rule 425

Int[((a_) + (b_.)*(x_)^(n_))^(p_)*((c_) + (d_.)*(x_)^(n_))^(q_), x_Symbol] :> Simp[(-b)*x*(a + b*x^n)^(p + 1)*
((c + d*x^n)^(q + 1)/(a*n*(p + 1)*(b*c - a*d))), x] + Dist[1/(a*n*(p + 1)*(b*c - a*d)), Int[(a + b*x^n)^(p + 1
)*(c + d*x^n)^q*Simp[b*c + n*(p + 1)*(b*c - a*d) + d*b*(n*(p + q + 2) + 1)*x^n, x], x], x] /; FreeQ[{a, b, c,
d, n, q}, x] && NeQ[b*c - a*d, 0] && LtQ[p, -1] &&  !( !IntegerQ[p] && IntegerQ[q] && LtQ[q, -1]) && IntBinomi
alQ[a, b, c, d, n, p, q, x]

Rule 536

Int[((e_) + (f_.)*(x_)^(n_))/(((a_) + (b_.)*(x_)^(n_))*((c_) + (d_.)*(x_)^(n_))), x_Symbol] :> Dist[(b*e - a*f
)/(b*c - a*d), Int[1/(a + b*x^n), x], x] - Dist[(d*e - c*f)/(b*c - a*d), Int[1/(c + d*x^n), x], x] /; FreeQ[{a
, b, c, d, e, f, n}, x]

Rule 2352

Int[Log[(c_.)*(x_)]/((d_) + (e_.)*(x_)), x_Symbol] :> Simp[(-e^(-1))*PolyLog[2, 1 - c*x], x] /; FreeQ[{c, d, e
}, x] && EqQ[e + c*d, 0]

Rule 2438

Int[Log[(c_.)*((d_) + (e_.)*(x_)^(n_.))]/(x_), x_Symbol] :> Simp[-PolyLog[2, (-c)*e*x^n]/n, x] /; FreeQ[{c, d,
 e, n}, x] && EqQ[c*d, 1]

Rule 2449

Int[Log[(c_.)/((d_) + (e_.)*(x_))]/((f_) + (g_.)*(x_)^2), x_Symbol] :> Dist[-e/g, Subst[Int[Log[2*d*x]/(1 - 2*
d*x), x], x, 1/(d + e*x)], x] /; FreeQ[{c, d, e, f, g}, x] && EqQ[c, 2*d] && EqQ[e^2*f + d^2*g, 0]

Rule 2497

Int[Log[u_]*(Pq_)^(m_.), x_Symbol] :> With[{C = FullSimplify[Pq^m*((1 - u)/D[u, x])]}, Simp[C*PolyLog[2, 1 - u
], x] /; FreeQ[C, x]] /; IntegerQ[m] && PolyQ[Pq, x] && RationalFunctionQ[u, x] && LeQ[RationalFunctionExponen
ts[u, x][[2]], Expon[Pq, x]]

Rule 4940

Int[((a_.) + ArcTan[(c_.)*(x_)]*(b_.))/(x_), x_Symbol] :> Simp[a*Log[x], x] + (Dist[I*(b/2), Int[Log[1 - I*c*x
]/x, x], x] - Dist[I*(b/2), Int[Log[1 + I*c*x]/x, x], x]) /; FreeQ[{a, b, c}, x]

Rule 4946

Int[((a_.) + ArcTan[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)*(x_)^(m_.), x_Symbol] :> Simp[x^(m + 1)*((a + b*ArcTan[c*x^
n])^p/(m + 1)), x] - Dist[b*c*n*(p/(m + 1)), Int[x^(m + n)*((a + b*ArcTan[c*x^n])^(p - 1)/(1 + c^2*x^(2*n))),
x], x] /; FreeQ[{a, b, c, m, n}, x] && IGtQ[p, 0] && (EqQ[p, 1] || (EqQ[n, 1] && IntegerQ[m])) && NeQ[m, -1]

Rule 4966

Int[((a_.) + ArcTan[(c_.)*(x_)]*(b_.))/((d_) + (e_.)*(x_)), x_Symbol] :> Simp[(-(a + b*ArcTan[c*x]))*(Log[2/(1
 - I*c*x)]/e), x] + (Dist[b*(c/e), Int[Log[2/(1 - I*c*x)]/(1 + c^2*x^2), x], x] - Dist[b*(c/e), Int[Log[2*c*((
d + e*x)/((c*d + I*e)*(1 - I*c*x)))]/(1 + c^2*x^2), x], x] + Simp[(a + b*ArcTan[c*x])*(Log[2*c*((d + e*x)/((c*
d + I*e)*(1 - I*c*x)))]/e), x]) /; FreeQ[{a, b, c, d, e}, x] && NeQ[c^2*d^2 + e^2, 0]

Rule 5094

Int[((a_.) + ArcTan[(c_.)*(x_)]*(b_.))*(x_)*((d_.) + (e_.)*(x_)^2)^(q_.), x_Symbol] :> Simp[(d + e*x^2)^(q + 1
)*((a + b*ArcTan[c*x])/(2*e*(q + 1))), x] - Dist[b*(c/(2*e*(q + 1))), Int[(d + e*x^2)^(q + 1)/(1 + c^2*x^2), x
], x] /; FreeQ[{a, b, c, d, e, q}, x] && NeQ[q, -1]

Rule 5100

Int[((a_.) + ArcTan[(c_.)*(x_)]*(b_.))^(p_.)*((f_.)*(x_))^(m_.)*((d_) + (e_.)*(x_)^2)^(q_.), x_Symbol] :> With
[{u = ExpandIntegrand[(a + b*ArcTan[c*x])^p, (f*x)^m*(d + e*x^2)^q, x]}, Int[u, x] /; SumQ[u]] /; FreeQ[{a, b,
 c, d, e, f, m}, x] && IntegerQ[q] && IGtQ[p, 0] && ((EqQ[p, 1] && GtQ[q, 0]) || IntegerQ[m])

Rubi steps \begin{align*} \text {integral}& = \int \left (\frac {a+b \arctan (c x)}{d^3 x^3}-\frac {3 e (a+b \arctan (c x))}{d^4 x}+\frac {e^2 x (a+b \arctan (c x))}{d^2 \left (d+e x^2\right )^3}+\frac {2 e^2 x (a+b \arctan (c x))}{d^3 \left (d+e x^2\right )^2}+\frac {3 e^2 x (a+b \arctan (c x))}{d^4 \left (d+e x^2\right )}\right ) \, dx \\ & = \frac {\int \frac {a+b \arctan (c x)}{x^3} \, dx}{d^3}-\frac {(3 e) \int \frac {a+b \arctan (c x)}{x} \, dx}{d^4}+\frac {\left (3 e^2\right ) \int \frac {x (a+b \arctan (c x))}{d+e x^2} \, dx}{d^4}+\frac {\left (2 e^2\right ) \int \frac {x (a+b \arctan (c x))}{\left (d+e x^2\right )^2} \, dx}{d^3}+\frac {e^2 \int \frac {x (a+b \arctan (c x))}{\left (d+e x^2\right )^3} \, dx}{d^2} \\ & = -\frac {a+b \arctan (c x)}{2 d^3 x^2}-\frac {e (a+b \arctan (c x))}{4 d^2 \left (d+e x^2\right )^2}-\frac {e (a+b \arctan (c x))}{d^3 \left (d+e x^2\right )}-\frac {3 a e \log (x)}{d^4}+\frac {(b c) \int \frac {1}{x^2 \left (1+c^2 x^2\right )} \, dx}{2 d^3}-\frac {(3 i b e) \int \frac {\log (1-i c x)}{x} \, dx}{2 d^4}+\frac {(3 i b e) \int \frac {\log (1+i c x)}{x} \, dx}{2 d^4}+\frac {(b c e) \int \frac {1}{\left (1+c^2 x^2\right ) \left (d+e x^2\right )} \, dx}{d^3}+\frac {(b c e) \int \frac {1}{\left (1+c^2 x^2\right ) \left (d+e x^2\right )^2} \, dx}{4 d^2}+\frac {\left (3 e^2\right ) \int \left (-\frac {a+b \arctan (c x)}{2 \sqrt {e} \left (\sqrt {-d}-\sqrt {e} x\right )}+\frac {a+b \arctan (c x)}{2 \sqrt {e} \left (\sqrt {-d}+\sqrt {e} x\right )}\right ) \, dx}{d^4} \\ & = -\frac {b c}{2 d^3 x}-\frac {b c e^2 x}{8 d^3 \left (c^2 d-e\right ) \left (d+e x^2\right )}-\frac {a+b \arctan (c x)}{2 d^3 x^2}-\frac {e (a+b \arctan (c x))}{4 d^2 \left (d+e x^2\right )^2}-\frac {e (a+b \arctan (c x))}{d^3 \left (d+e x^2\right )}-\frac {3 a e \log (x)}{d^4}-\frac {3 i b e \operatorname {PolyLog}(2,-i c x)}{2 d^4}+\frac {3 i b e \operatorname {PolyLog}(2,i c x)}{2 d^4}-\frac {\left (b c^3\right ) \int \frac {1}{1+c^2 x^2} \, dx}{2 d^3}+\frac {(b c e) \int \frac {2 c^2 d-e-c^2 e x^2}{\left (1+c^2 x^2\right ) \left (d+e x^2\right )} \, dx}{8 d^3 \left (c^2 d-e\right )}+\frac {\left (b c^3 e\right ) \int \frac {1}{1+c^2 x^2} \, dx}{d^3 \left (c^2 d-e\right )}-\frac {\left (3 e^{3/2}\right ) \int \frac {a+b \arctan (c x)}{\sqrt {-d}-\sqrt {e} x} \, dx}{2 d^4}+\frac {\left (3 e^{3/2}\right ) \int \frac {a+b \arctan (c x)}{\sqrt {-d}+\sqrt {e} x} \, dx}{2 d^4}-\frac {\left (b c e^2\right ) \int \frac {1}{d+e x^2} \, dx}{d^3 \left (c^2 d-e\right )} \\ & = -\frac {b c}{2 d^3 x}-\frac {b c e^2 x}{8 d^3 \left (c^2 d-e\right ) \left (d+e x^2\right )}-\frac {b c^2 \arctan (c x)}{2 d^3}+\frac {b c^2 e \arctan (c x)}{d^3 \left (c^2 d-e\right )}-\frac {a+b \arctan (c x)}{2 d^3 x^2}-\frac {e (a+b \arctan (c x))}{4 d^2 \left (d+e x^2\right )^2}-\frac {e (a+b \arctan (c x))}{d^3 \left (d+e x^2\right )}-\frac {b c e^{3/2} \arctan \left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{d^{7/2} \left (c^2 d-e\right )}-\frac {3 a e \log (x)}{d^4}-\frac {3 e (a+b \arctan (c x)) \log \left (\frac {2}{1-i c x}\right )}{d^4}+\frac {3 e (a+b \arctan (c x)) \log \left (\frac {2 c \left (\sqrt {-d}-\sqrt {e} x\right )}{\left (c \sqrt {-d}-i \sqrt {e}\right ) (1-i c x)}\right )}{2 d^4}+\frac {3 e (a+b \arctan (c x)) \log \left (\frac {2 c \left (\sqrt {-d}+\sqrt {e} x\right )}{\left (c \sqrt {-d}+i \sqrt {e}\right ) (1-i c x)}\right )}{2 d^4}-\frac {3 i b e \operatorname {PolyLog}(2,-i c x)}{2 d^4}+\frac {3 i b e \operatorname {PolyLog}(2,i c x)}{2 d^4}+2 \frac {(3 b c e) \int \frac {\log \left (\frac {2}{1-i c x}\right )}{1+c^2 x^2} \, dx}{2 d^4}-\frac {(3 b c e) \int \frac {\log \left (\frac {2 c \left (\sqrt {-d}-\sqrt {e} x\right )}{\left (c \sqrt {-d}-i \sqrt {e}\right ) (1-i c x)}\right )}{1+c^2 x^2} \, dx}{2 d^4}-\frac {(3 b c e) \int \frac {\log \left (\frac {2 c \left (\sqrt {-d}+\sqrt {e} x\right )}{\left (c \sqrt {-d}+i \sqrt {e}\right ) (1-i c x)}\right )}{1+c^2 x^2} \, dx}{2 d^4}+\frac {\left (b c^5 e\right ) \int \frac {1}{1+c^2 x^2} \, dx}{4 d^2 \left (c^2 d-e\right )^2}-\frac {\left (b c \left (3 c^2 d-e\right ) e^2\right ) \int \frac {1}{d+e x^2} \, dx}{8 d^3 \left (c^2 d-e\right )^2} \\ & = -\frac {b c}{2 d^3 x}-\frac {b c e^2 x}{8 d^3 \left (c^2 d-e\right ) \left (d+e x^2\right )}-\frac {b c^2 \arctan (c x)}{2 d^3}+\frac {b c^4 e \arctan (c x)}{4 d^2 \left (c^2 d-e\right )^2}+\frac {b c^2 e \arctan (c x)}{d^3 \left (c^2 d-e\right )}-\frac {a+b \arctan (c x)}{2 d^3 x^2}-\frac {e (a+b \arctan (c x))}{4 d^2 \left (d+e x^2\right )^2}-\frac {e (a+b \arctan (c x))}{d^3 \left (d+e x^2\right )}-\frac {b c e^{3/2} \arctan \left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{d^{7/2} \left (c^2 d-e\right )}-\frac {b c \left (3 c^2 d-e\right ) e^{3/2} \arctan \left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{8 d^{7/2} \left (c^2 d-e\right )^2}-\frac {3 a e \log (x)}{d^4}-\frac {3 e (a+b \arctan (c x)) \log \left (\frac {2}{1-i c x}\right )}{d^4}+\frac {3 e (a+b \arctan (c x)) \log \left (\frac {2 c \left (\sqrt {-d}-\sqrt {e} x\right )}{\left (c \sqrt {-d}-i \sqrt {e}\right ) (1-i c x)}\right )}{2 d^4}+\frac {3 e (a+b \arctan (c x)) \log \left (\frac {2 c \left (\sqrt {-d}+\sqrt {e} x\right )}{\left (c \sqrt {-d}+i \sqrt {e}\right ) (1-i c x)}\right )}{2 d^4}-\frac {3 i b e \operatorname {PolyLog}(2,-i c x)}{2 d^4}+\frac {3 i b e \operatorname {PolyLog}(2,i c x)}{2 d^4}-\frac {3 i b e \operatorname {PolyLog}\left (2,1-\frac {2 c \left (\sqrt {-d}-\sqrt {e} x\right )}{\left (c \sqrt {-d}-i \sqrt {e}\right ) (1-i c x)}\right )}{4 d^4}-\frac {3 i b e \operatorname {PolyLog}\left (2,1-\frac {2 c \left (\sqrt {-d}+\sqrt {e} x\right )}{\left (c \sqrt {-d}+i \sqrt {e}\right ) (1-i c x)}\right )}{4 d^4}+2 \frac {(3 i b e) \text {Subst}\left (\int \frac {\log (2 x)}{1-2 x} \, dx,x,\frac {1}{1-i c x}\right )}{2 d^4} \\ & = -\frac {b c}{2 d^3 x}-\frac {b c e^2 x}{8 d^3 \left (c^2 d-e\right ) \left (d+e x^2\right )}-\frac {b c^2 \arctan (c x)}{2 d^3}+\frac {b c^4 e \arctan (c x)}{4 d^2 \left (c^2 d-e\right )^2}+\frac {b c^2 e \arctan (c x)}{d^3 \left (c^2 d-e\right )}-\frac {a+b \arctan (c x)}{2 d^3 x^2}-\frac {e (a+b \arctan (c x))}{4 d^2 \left (d+e x^2\right )^2}-\frac {e (a+b \arctan (c x))}{d^3 \left (d+e x^2\right )}-\frac {b c e^{3/2} \arctan \left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{d^{7/2} \left (c^2 d-e\right )}-\frac {b c \left (3 c^2 d-e\right ) e^{3/2} \arctan \left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{8 d^{7/2} \left (c^2 d-e\right )^2}-\frac {3 a e \log (x)}{d^4}-\frac {3 e (a+b \arctan (c x)) \log \left (\frac {2}{1-i c x}\right )}{d^4}+\frac {3 e (a+b \arctan (c x)) \log \left (\frac {2 c \left (\sqrt {-d}-\sqrt {e} x\right )}{\left (c \sqrt {-d}-i \sqrt {e}\right ) (1-i c x)}\right )}{2 d^4}+\frac {3 e (a+b \arctan (c x)) \log \left (\frac {2 c \left (\sqrt {-d}+\sqrt {e} x\right )}{\left (c \sqrt {-d}+i \sqrt {e}\right ) (1-i c x)}\right )}{2 d^4}-\frac {3 i b e \operatorname {PolyLog}(2,-i c x)}{2 d^4}+\frac {3 i b e \operatorname {PolyLog}(2,i c x)}{2 d^4}+\frac {3 i b e \operatorname {PolyLog}\left (2,1-\frac {2}{1-i c x}\right )}{2 d^4}-\frac {3 i b e \operatorname {PolyLog}\left (2,1-\frac {2 c \left (\sqrt {-d}-\sqrt {e} x\right )}{\left (c \sqrt {-d}-i \sqrt {e}\right ) (1-i c x)}\right )}{4 d^4}-\frac {3 i b e \operatorname {PolyLog}\left (2,1-\frac {2 c \left (\sqrt {-d}+\sqrt {e} x\right )}{\left (c \sqrt {-d}+i \sqrt {e}\right ) (1-i c x)}\right )}{4 d^4} \\ \end{align*}

Mathematica [A] (verified)

Time = 12.59 (sec) , antiderivative size = 723, normalized size of antiderivative = 1.15 \[ \int \frac {a+b \arctan (c x)}{x^3 \left (d+e x^2\right )^3} \, dx=\frac {-a \left (\frac {d \left (2 d^2+9 d e x^2+6 e^2 x^4\right )}{x^2 \left (d+e x^2\right )^2}+12 e \log (x)-6 e \log \left (d+e x^2\right )\right )+b \left (-\frac {2 c d}{x}-\frac {c d e^2 x}{2 \left (c^2 d-e\right ) \left (d+e x^2\right )}+\frac {c^2 d \left (-2 c^4 d^2+9 c^2 d e-6 e^2\right ) \arctan (c x)}{\left (-c^2 d+e\right )^2}-\frac {d \left (2 d^2+9 d e x^2+6 e^2 x^4\right ) \arctan (c x)}{x^2 \left (d+e x^2\right )^2}+\frac {c \sqrt {d} e^{3/2} \left (-11 c^2 d+9 e\right ) \arctan \left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{2 \left (-c^2 d+e\right )^2}-12 e \arctan (c x) \log (x)+6 e \arctan (c x) \left (\log \left (-\frac {i \sqrt {d}}{\sqrt {e}}+x\right )+\log \left (\frac {i \sqrt {d}}{\sqrt {e}}+x\right )-\log \left (d+e x^2\right )\right )+6 e \arctan (c x) \log \left (d+e x^2\right )-6 i e (\log (x) \log (1+i c x)+\operatorname {PolyLog}(2,-i c x))+6 i e (\log (x) \log (1-i c x)+\operatorname {PolyLog}(2,i c x))-3 i e \left (\log \left (\frac {i \sqrt {d}}{\sqrt {e}}+x\right ) \log \left (\frac {\sqrt {e} (-1+i c x)}{c \sqrt {d}-\sqrt {e}}\right )+\operatorname {PolyLog}\left (2,\frac {c \left (\sqrt {d}-i \sqrt {e} x\right )}{c \sqrt {d}-\sqrt {e}}\right )\right )+3 i e \left (\log \left (\frac {i \sqrt {d}}{\sqrt {e}}+x\right ) \log \left (\frac {\sqrt {e} (1+i c x)}{c \sqrt {d}+\sqrt {e}}\right )+\operatorname {PolyLog}\left (2,\frac {c \left (\sqrt {d}-i \sqrt {e} x\right )}{c \sqrt {d}+\sqrt {e}}\right )\right )+3 i e \left (\log \left (-\frac {i \sqrt {d}}{\sqrt {e}}+x\right ) \log \left (\frac {\sqrt {e} (-1-i c x)}{c \sqrt {d}-\sqrt {e}}\right )+\operatorname {PolyLog}\left (2,\frac {c \left (\sqrt {d}+i \sqrt {e} x\right )}{c \sqrt {d}-\sqrt {e}}\right )\right )-3 i e \left (\log \left (-\frac {i \sqrt {d}}{\sqrt {e}}+x\right ) \log \left (\frac {\sqrt {e} (1-i c x)}{c \sqrt {d}+\sqrt {e}}\right )+\operatorname {PolyLog}\left (2,\frac {c \left (\sqrt {d}+i \sqrt {e} x\right )}{c \sqrt {d}+\sqrt {e}}\right )\right )\right )}{4 d^4} \]

[In]

Integrate[(a + b*ArcTan[c*x])/(x^3*(d + e*x^2)^3),x]

[Out]

(-(a*((d*(2*d^2 + 9*d*e*x^2 + 6*e^2*x^4))/(x^2*(d + e*x^2)^2) + 12*e*Log[x] - 6*e*Log[d + e*x^2])) + b*((-2*c*
d)/x - (c*d*e^2*x)/(2*(c^2*d - e)*(d + e*x^2)) + (c^2*d*(-2*c^4*d^2 + 9*c^2*d*e - 6*e^2)*ArcTan[c*x])/(-(c^2*d
) + e)^2 - (d*(2*d^2 + 9*d*e*x^2 + 6*e^2*x^4)*ArcTan[c*x])/(x^2*(d + e*x^2)^2) + (c*Sqrt[d]*e^(3/2)*(-11*c^2*d
 + 9*e)*ArcTan[(Sqrt[e]*x)/Sqrt[d]])/(2*(-(c^2*d) + e)^2) - 12*e*ArcTan[c*x]*Log[x] + 6*e*ArcTan[c*x]*(Log[((-
I)*Sqrt[d])/Sqrt[e] + x] + Log[(I*Sqrt[d])/Sqrt[e] + x] - Log[d + e*x^2]) + 6*e*ArcTan[c*x]*Log[d + e*x^2] - (
6*I)*e*(Log[x]*Log[1 + I*c*x] + PolyLog[2, (-I)*c*x]) + (6*I)*e*(Log[x]*Log[1 - I*c*x] + PolyLog[2, I*c*x]) -
(3*I)*e*(Log[(I*Sqrt[d])/Sqrt[e] + x]*Log[(Sqrt[e]*(-1 + I*c*x))/(c*Sqrt[d] - Sqrt[e])] + PolyLog[2, (c*(Sqrt[
d] - I*Sqrt[e]*x))/(c*Sqrt[d] - Sqrt[e])]) + (3*I)*e*(Log[(I*Sqrt[d])/Sqrt[e] + x]*Log[(Sqrt[e]*(1 + I*c*x))/(
c*Sqrt[d] + Sqrt[e])] + PolyLog[2, (c*(Sqrt[d] - I*Sqrt[e]*x))/(c*Sqrt[d] + Sqrt[e])]) + (3*I)*e*(Log[((-I)*Sq
rt[d])/Sqrt[e] + x]*Log[(Sqrt[e]*(-1 - I*c*x))/(c*Sqrt[d] - Sqrt[e])] + PolyLog[2, (c*(Sqrt[d] + I*Sqrt[e]*x))
/(c*Sqrt[d] - Sqrt[e])]) - (3*I)*e*(Log[((-I)*Sqrt[d])/Sqrt[e] + x]*Log[(Sqrt[e]*(1 - I*c*x))/(c*Sqrt[d] + Sqr
t[e])] + PolyLog[2, (c*(Sqrt[d] + I*Sqrt[e]*x))/(c*Sqrt[d] + Sqrt[e])])))/(4*d^4)

Maple [C] (warning: unable to verify)

Result contains higher order function than in optimal. Order 9 vs. order 4.

Time = 1.00 (sec) , antiderivative size = 951, normalized size of antiderivative = 1.51

method result size
parts \(\text {Expression too large to display}\) \(951\)
derivativedivides \(\text {Expression too large to display}\) \(987\)
default \(\text {Expression too large to display}\) \(987\)
risch \(\text {Expression too large to display}\) \(1858\)

[In]

int((a+b*arctan(c*x))/x^3/(e*x^2+d)^3,x,method=_RETURNVERBOSE)

[Out]

-1/2*a/d^3/x^2-3*a*e*ln(x)/d^4-a*e/d^3/(e*x^2+d)+3/2*a*e/d^4*ln(e*x^2+d)-1/4*a*e/d^2/(e*x^2+d)^2+b*c^2*(-1/2*a
rctan(c*x)/d^3/c^2/x^2-3/c^2*arctan(c*x)/d^4*e*ln(c*x)+3/2/c^2*arctan(c*x)*e/d^4*ln(c^2*e*x^2+c^2*d)-1/4*c^2*a
rctan(c*x)*e/d^2/(c^2*e*x^2+c^2*d)^2-arctan(c*x)*e/d^3/(c^2*e*x^2+c^2*d)-1/2*c^6*(-6/d^4/c^8*e*(-1/2*I*ln(c*x)
*ln(1+I*c*x)+1/2*I*ln(c*x)*ln(1-I*c*x)-1/2*I*dilog(1+I*c*x)+1/2*I*dilog(1-I*c*x))+3/d^4/c^8*e*(-1/2*I*(ln(c*x-
I)*ln(c^2*e*x^2+c^2*d)-2*e*(1/2*ln(c*x-I)*(ln((RootOf(e*_Z^2+2*I*e*_Z+c^2*d-e,index=1)-c*x+I)/RootOf(e*_Z^2+2*
I*e*_Z+c^2*d-e,index=1))+ln((RootOf(e*_Z^2+2*I*e*_Z+c^2*d-e,index=2)-c*x+I)/RootOf(e*_Z^2+2*I*e*_Z+c^2*d-e,ind
ex=2)))/e+1/2*(dilog((RootOf(e*_Z^2+2*I*e*_Z+c^2*d-e,index=1)-c*x+I)/RootOf(e*_Z^2+2*I*e*_Z+c^2*d-e,index=1))+
dilog((RootOf(e*_Z^2+2*I*e*_Z+c^2*d-e,index=2)-c*x+I)/RootOf(e*_Z^2+2*I*e*_Z+c^2*d-e,index=2)))/e))+1/2*I*(ln(
I+c*x)*ln(c^2*e*x^2+c^2*d)-2*e*(1/2*ln(I+c*x)*(ln((RootOf(e*_Z^2-2*I*e*_Z+c^2*d-e,index=1)-c*x-I)/RootOf(e*_Z^
2-2*I*e*_Z+c^2*d-e,index=1))+ln((RootOf(e*_Z^2-2*I*e*_Z+c^2*d-e,index=2)-c*x-I)/RootOf(e*_Z^2-2*I*e*_Z+c^2*d-e
,index=2)))/e+1/2*(dilog((RootOf(e*_Z^2-2*I*e*_Z+c^2*d-e,index=1)-c*x-I)/RootOf(e*_Z^2-2*I*e*_Z+c^2*d-e,index=
1))+dilog((RootOf(e*_Z^2-2*I*e*_Z+c^2*d-e,index=2)-c*x-I)/RootOf(e*_Z^2-2*I*e*_Z+c^2*d-e,index=2)))/e)))-1/2/d
^3/c^6*(-e^2/(c^2*d-e)^2*((1/2*c^2*d-1/2*e)*c*x/(c^2*e*x^2+c^2*d)+1/2*(11*c^2*d-9*e)/c/(e*d)^(1/2)*arctan(e*x/
(e*d)^(1/2)))+(-2*c^4*d^2+9*c^2*d*e-6*e^2)/(c^2*d-e)^2*arctan(c*x)-2/c/x)))

Fricas [F]

\[ \int \frac {a+b \arctan (c x)}{x^3 \left (d+e x^2\right )^3} \, dx=\int { \frac {b \arctan \left (c x\right ) + a}{{\left (e x^{2} + d\right )}^{3} x^{3}} \,d x } \]

[In]

integrate((a+b*arctan(c*x))/x^3/(e*x^2+d)^3,x, algorithm="fricas")

[Out]

integral((b*arctan(c*x) + a)/(e^3*x^9 + 3*d*e^2*x^7 + 3*d^2*e*x^5 + d^3*x^3), x)

Sympy [F(-1)]

Timed out. \[ \int \frac {a+b \arctan (c x)}{x^3 \left (d+e x^2\right )^3} \, dx=\text {Timed out} \]

[In]

integrate((a+b*atan(c*x))/x**3/(e*x**2+d)**3,x)

[Out]

Timed out

Maxima [F]

\[ \int \frac {a+b \arctan (c x)}{x^3 \left (d+e x^2\right )^3} \, dx=\int { \frac {b \arctan \left (c x\right ) + a}{{\left (e x^{2} + d\right )}^{3} x^{3}} \,d x } \]

[In]

integrate((a+b*arctan(c*x))/x^3/(e*x^2+d)^3,x, algorithm="maxima")

[Out]

-1/4*a*((6*e^2*x^4 + 9*d*e*x^2 + 2*d^2)/(d^3*e^2*x^6 + 2*d^4*e*x^4 + d^5*x^2) - 6*e*log(e*x^2 + d)/d^4 + 12*e*
log(x)/d^4) + 2*b*integrate(1/2*arctan(c*x)/(e^3*x^9 + 3*d*e^2*x^7 + 3*d^2*e*x^5 + d^3*x^3), x)

Giac [F]

\[ \int \frac {a+b \arctan (c x)}{x^3 \left (d+e x^2\right )^3} \, dx=\int { \frac {b \arctan \left (c x\right ) + a}{{\left (e x^{2} + d\right )}^{3} x^{3}} \,d x } \]

[In]

integrate((a+b*arctan(c*x))/x^3/(e*x^2+d)^3,x, algorithm="giac")

[Out]

sage0*x

Mupad [F(-1)]

Timed out. \[ \int \frac {a+b \arctan (c x)}{x^3 \left (d+e x^2\right )^3} \, dx=\int \frac {a+b\,\mathrm {atan}\left (c\,x\right )}{x^3\,{\left (e\,x^2+d\right )}^3} \,d x \]

[In]

int((a + b*atan(c*x))/(x^3*(d + e*x^2)^3),x)

[Out]

int((a + b*atan(c*x))/(x^3*(d + e*x^2)^3), x)